package modelo;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

@Entity
@NamedQueries( { @NamedQuery(name = "Contribuyente.findAll", query = "select o from Contribuyente o") })
@Table(name = "\"contribuyente\"")
public class Contribuyente implements Serializable {
    @Column(name = "correo")
    private String correo;
    @Column(name = "iddomiciliofiscal")
    private long iddomiciliofiscal;
    @Column(name = "razonsocial")
    private String razonsocial;
    @Column(name = "regimenfiscal", nullable = false)
    private String regimenfiscal;
    @Id
    @Column(name = "rfce", nullable = false)
    private String rfce;
    @Column(name = "tipopersona")
    private String tipopersona;

    public Contribuyente() {
    }

    public Contribuyente(String correo, long iddomiciliofiscal, String razonsocial, String regimenfiscal, String rfce,
                         String tipopersona) {
        this.correo = correo;
        this.iddomiciliofiscal = iddomiciliofiscal;
        this.razonsocial = razonsocial;
        this.regimenfiscal = regimenfiscal;
        this.rfce = rfce;
        this.tipopersona = tipopersona;
    }

    public String getCorreo() {
        return correo;
    }

    public void setCorreo(String correo) {
        this.correo = correo;
    }

    public long getIddomiciliofiscal() {
        return iddomiciliofiscal;
    }

    public void setIddomiciliofiscal(long iddomiciliofiscal) {
        this.iddomiciliofiscal = iddomiciliofiscal;
    }

    public String getRazonsocial() {
        return razonsocial;
    }

    public void setRazonsocial(String razonsocial) {
        this.razonsocial = razonsocial;
    }

    public String getRegimenfiscal() {
        return regimenfiscal;
    }

    public void setRegimenfiscal(String regimenfiscal) {
        this.regimenfiscal = regimenfiscal;
    }

    public String getRfce() {
        return rfce;
    }

    public void setRfce(String rfce) {
        this.rfce = rfce;
    }

    public String getTipopersona() {
        return tipopersona;
    }

    public void setTipopersona(String tipopersona) {
        this.tipopersona = tipopersona;
    }
}
